package com.java01;

public class sixthjava {
    public static void main(String[] args) {
       int i,j;
       for (j = 1;j <= 9;j++){
           for (i = 1;i <= j;i++){
               System.out.print(i + "*" + j + "=" + j*i + " ");
           }
           System.out.println();
       }
    }
}
class forexercise{
    public static void main(String[] args) {
        int i, count = 0, sum = 0, star = 1, end = 100, t = 9;
        for (i = star;i <= end;i++){
            if (i % t == 0){
                System.out.println(i);
                count++;
                sum += i;
            }
        }
        System.out.println("1-100之间9的倍数有" + count + "个，总和为" + sum);
    }
}

class forexercise02{
    public static void main(String[] args) {
        for (int i = 0,j = 5;j>=0 && i <= 5;j--,i++){
//            for (;i<=5;i++){
                System.out.println(i + "+" + j + "=" + (i+j));
//            }
        }
    }
}
